{% extends "site.html" %}
{% block title %}{% endblock %}
{% block stylesheet %}{% load media %}{% media_prefix %}css/shm-ab.css{% endblock %}
{% block globalconteiner %}
<h1>Телефонный справочник - 2</h1>

<div id="main_menu">
&nbsp;&nbsp;
{% comment %}
    <a href="">Отделы</a>
    <a href="">Телефоны</a>
    <a href="">Сотрудники</a>
    <a href="">Поиск</a>{% endcomment %}
</div>

{% block main %}
<table style="margin-bottom:30px;" class=".table_layout">
    <tr>
        <td width="30%">
            <div id="department_root">
            {% for item in root_department %}
            <h3>
                {% ifequal item.id department.id %}
                    <p class="selected_item">{{ item.name }}</p>
                {% else %}   
                    <a href="{% url adressbook_department item.id %}">{{ item.name }}</a>
                {% endifequal %}
            </h3>
            {% endfor %}
            </div>
        </td>
        <td width="30%">
            <div id="department_list">
                {% block department_list %}{% endblock %}
            </div>
        </td>
        <td width="30%">
            <div id="employee_list">
                {% block employee_list %}{% endblock %}
            </div>
        </td>
        <td width="10%">
            <div id="letter_list">
                {% block letter_list %}{% endblock %}
                
                {% for item in letters %}
                   <h3 class="letter"><a href="{% url addressbook_employee_letter forloop.counter0 %}">{{ item }}</a></h3>
                {% endfor %}
            </div>
        </td>        
    </tr>
</table>
{% endblock %}
{% endblock %}
{% block meta %}
  {% if debug %}
    {% include "debug_inf.html" %}
  {% endif %}
  Версия:&nbsp;2.0.0.0&nbsp;&nbsp;Date:&nbsp;8.05.2008
{% endblock %}	

